package com.zzyl.nursing.job;

import com.zzyl.nursing.service.IAlertHandleService;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

/**
 * @author robin
 * @date 25.6.3 11:08
 */
@Component("alertJob")
@Slf4j
@RequiredArgsConstructor
public class AlertJob {
    private final IAlertHandleService alertHandleService;
    
    /**
     * 对设备上报属性进行报警规则比对过滤
     */
    public void deviceDataAlertFilter() {
        log.info("定时执行报警规则比对。。。");
        alertHandleService.alertFilter();
    }
}
